<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
</head>
<body>
    <div class="one">1
        <div class="two">2
            <div class="three">3
                <div class="four">我不容易</div>
            </div>
        </div>
    </div>
    <script>
        //parents("选择器") 可以返回指定的祖先
        console.log($(".four").parents(".one")); 
    </script>
</body>
</html>